package cn.toma.service.sys;


import cn.toma.core.Service;
import cn.toma.model.sys.Role;

import java.util.List;

public interface RoleService extends Service<Role>
{

	List<Role> findRolePage(Role role);

	List<Role> findRoles(Role role);

	List<Role> findUserRole(String userName);

	Role findByName(String roleName);

	void createRole(Role role);

	void deleteRoles(String[] roleIds) throws Exception;

	void updateRole(Role role) throws Exception;
}
